package com.web.exiaodao.business.service;

import com.web.exiaodao.business.entity.Shop;
import com.web.exiaodao.remote.vo.ShopStandardNameVo;
import com.web.exiaodao.remote.vo.ShopVo;
import com.web.webstart.base.exception.BaseException;
import com.web.webstart.base.exception.BusinessException;
import com.web.webstart.base.service.BaseServiceInterFace;
import com.web.webstart.base.util.result.XaResult;

import java.util.List;

public interface ShopService extends BaseServiceInterFace<ShopVo>{

    public XaResult<ShopVo> findShopById(Long modelId)throws BusinessException;

    /**
     * 获取指定类别的商品数量 （正常状态的商品）
     * @author duandazhi
     * @date 2017/1/9 下午8:41
     */
    public XaResult<Long> findShopCountByCategoryType(Long categoryType)throws BaseException;

    /**
     * @Description:
     * @author duandazhi  创建或者修改商品包含规格名称和规格值
     * @date 2016/11/30 下午12:06
     */
    public XaResult<ShopVo> createOrUpdateModelWithStandNames(Shop model, List<ShopStandardNameVo> shopStandardNameVos)
            throws BusinessException;
}
